import request from '../http'
import requestUrl from '../requestUrl'
import requestParam from '../requestParam'
import isInteger from 'lodash/isInteger'
import axios from 'axios'

/*
根据分页查找系统配置参数
 */
export function findBachByCondition(params) {
  return request.post(requestUrl('/sysInfo/findBachByCondition'), params);
}
/*
添加一个系统参数
 */
export function addOne(params) {
  return request.post(requestUrl('/sysInfo/addOne'), params);
}
/*
删除一个系统参数
 */
export function removeOneById(params) {
  return request({
    url:requestUrl('sysInfo/removeOneById/'+params),
    method:'get'
  });
}
/*
编辑一个系统参数
 */
export function modifyOneById(params) {
  return request.post(requestUrl('/sysInfo/modifyOneById'), params);
}
/*
根据参数名称查找系统参数
 */
export function findOneByPropertyName(params) {
  return request({
    url:requestUrl('sysInfo/findOneByPropertyName/'+params),
    method:'get'
  });
}
